<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<jsp:include page = "../../metadatos.jsp" flush = "True" />
<html>
    <head>
        <title>Administrador de Pedidos</title>
    </head>
    <body>
        <div class="wrapper">
            <header class="header">
                <img src="./resources/Logo.PNG" />
            </header><!-- .header-->
            <!-- .Navigation Menu -->
            <jsp:include page = "../../menuNavegacion.jsp" flush = "True" />
            <main class="content">
                <form class="formee">
                    <fieldset>
                        <legend>PartnerShips</legend>
                        <div class="grid-12-12">
                            <div class="grid-3-12">
                                <input type="button" value="nuevo"/>
                            </div>
                            <table class="bordered" width="100%">
                                <thead >
                                    <tr style="font-size:12px;">
                                        <th>Nombre</th>
                                        <th>Direccion</th>
                                        <th>Telefonos</th>
                                        <th>Email</th>
                                        <th>Asociado Como</th>
                                        <th>Editar</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <c:forEach items="${principalPartners.partners}" var="p">
                                        <tr style="font-size:12px;">
                                            <td><c:out value="${p.nombres}"/><c:out value="${p.apellidos}"/></td>
                                            <td><c:out value="${p.direccion}"/></td>
                                            <td><c:out value="${p.telefonos}"/></td>
                                            <td><c:out value="${p.email}"/></td>
                                            <td>
                                                <c:if test="${p.tipoPartner==1}">VENDEDOR</c:if>
                                                <c:if test="${p.tipoPartner==2}">PROVEEDOR</c:if>
                                                </td>
                                            <td>Editar</td>
                                            </tr>
                                    </c:forEach>
                                </tbody>
                            </table>
                        </div>
                    </fieldset>
                </form>
        </div>
    </main>
</body>
</html>
<jsp:include page = "../../pie.jsp" flush = "True" />